package sequence;

import tools.Asserts;

/**
 * @Author: LDeng
 * @Date: 2021-05-07 10:05
 */
public class Main {

    public static void main(String[] args) {
        int i = BruteForce02.indexOf("abcdefg", "cd");
        System.out.println(i);
        Asserts.test(BruteForce02.indexOf("Hello World","H")==0);
        Asserts.test(BruteForce02.indexOf("Hello World","d")==10);
        Asserts.test(BruteForce02.indexOf("Hello World","or")==7);
        Asserts.test(BruteForce02.indexOf("Hello World","abc")==-1);
    }
}
